home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16123 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  66 lines

  1. Path: news.tdl.com!news
  2. From: Martin Moore <moore@tdl.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: BC++5.0 Program doesn't compile (see text)
  5. Date: Tue, 09 Apr 1996 09:41:15 -0800
  6. Organization: FlexSoft, Dublin CA.
  7. Message-ID: <316AA13B.79CF@tdl.com>
  8. References: <4k9e51$fl9@arl-news-svc-5.compuserve.com>
  9. NNTP-Posting-Host: tdl-dyn28.tdl.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: quoted-printable
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. Philippe Verdy wrote:
  16. > =
  17.  
  18. > craiga@netcom.com (Craig Arnush) s'=E9crit :
  19. > > Martin Moore <moore@nac.telco.com> writes:
  20. > > >
  21. > > >I cannot get the following program to compile...can anyone else?
  22. > > >
  23. > > >#include "vector.h"
  24. > > >using namespace std;
  25. > > >vector<long> test;
  26. > >
  27. > > I had absolutely no problems with it.
  28. > >
  29. > Sorry, it compiles on my BC++5.0
  30. > But may be you need a int main(){} or int WinMain(){} function
  31. > to avoid link-time errors...The point is that it doesn't get to the LINK =
  32. stage. That's what a =
  33.  
  34. compile error means. =
  35.  
  36.  
  37. If you create a new project as follows:
  38.     Application Type: Application (.exe)
  39.     Platform: Windows 3.x {16]
  40.     Target Model: Large
  41.     Frameworks:    OWL
  42.     Libraries:    Dynamic
  43. (thanks to Mr. Fred Mellender for the specific steps), you should find =
  44.  
  45. that the above program (call it "bug.cpp" and add it to the project) =
  46.  
  47. does not compile...and, according to my testing, if you try to recompile =
  48.  
  49. the program *AFTER* the compilation error, the IDE loops and you must =
  50.  
  51. cancel it with CTRL-ALT-DEL (under Win95).
  52.  
  53. This bug has been submitted to Borland, but it is a sad commentary on =
  54.  
  55. their product.
  56.  
  57.  
  58. -- =
  59.  
  60. Martin Moore    email:  moore@tdl.com   =
  61.  
  62. FlexSoft //// Technical Analysis and Quote Downloaders
  63. Technical Analysis Scanner (TAS) & Personal Ticker Tape (PTT)
  64. FlexSoft WEB Page http://www.flexsoft.com
  65. ftp at            ftp://ftp.tdl.com/pub/moore
  66.